public class Writer extends Thread{
	int num = 0;
	Pipe p;
	String in;
	public Writer(Pipe p,String in){
		this.p = p;
		this.in = in;
	}
	public void run(){
		num = p.writePipe(in);
	}
	public int getNum(){
		return num;
	}
}